package day03;

public class OperDemo6 {
    public static void main(String[] args) {
        int num = 5;
        int flag = num > 0 ? 1 : -1;
        System.out.println(flag);

        int a = 34, b = 45;
        int max3 = a > b ? a : b;
        System.out.println("max=" + max3);

        int a1 = 567686757, b1 = 35436413;
        int max1 = a > b ? a : b;
        System.out.println(max1);

        String maya = "i love it", bobo = "family";
        int max2 = Math.max(maya.length(), bobo.length());
        System.out.println(max2);
    }
}
